package com.xiaoq.order.service.impl;

import com.xiaoq.order.entity.ShopOrderCardEntity;
import com.xiaoq.order.repository.IShopOrderCardRepository;
import com.xiaoq.order.service.IShopOrderCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chenjh on 2018/5/23.
 */
@Service
public class ShopOrderCardServiceImpl implements IShopOrderCardService {

    @Autowired
    private IShopOrderCardRepository shopOrderCardRepository;

    @Override
    public void save(ShopOrderCardEntity shopOrderCardEntity) {
        shopOrderCardRepository.save(shopOrderCardEntity);
    }

    @Override
    public List<ShopOrderCardEntity> getListByOrderIdList(String shopId, List<String> shopOrderIdList, Long minCreatedTime, Long maxCreatedTime) {
        return shopOrderCardRepository.getListByOrderIdList(shopId, shopOrderIdList, minCreatedTime, maxCreatedTime);
    }
}
